package routes

import (
	"soma-server/controller/k8s"

	jwt "soma-server/middleware"
	"github.com/gin-gonic/gin"
)

// 注册基础路由
func InitK8sRoutes(r *gin.RouterGroup, authMiddleware *jwt.JWTMiddleware) gin.IRoutes {
	k8sController := controller.NewK8sController()
	router := r.Group("/k8s")
	// // 开启jwt认证中间件
	// router.Use(authMiddleware.JWTAuthMiddleware())
	// // 开启casbin鉴权中间件
	// router.Use(middleware.CasbinMiddleware())
	{
		router.POST("/pods", k8sController.Pods)
	}
	return r
}